package com.dianban.service.impl;

import com.dianban.dao.JwTransferDao;
import com.dianban.entity.JwTransfer;
import com.dianban.service.JwTransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true)
public class JwTransferServiceImpl implements JwTransferService {

    @Autowired
    private JwTransferDao jwTransferDao;


    @Override
    public List<JwTransfer> findList(Long userId, String dayTime) {
        return jwTransferDao.findList(userId, dayTime);
    }

    @Override
    @Transactional(readOnly = false)
    public void insert(JwTransfer jwTransfer) {
        jwTransferDao.insert(jwTransfer);
    }
}
